import Main from '@/components/main';

export const customer = [
  {
    path: '/customer',
    name: 'Customer',
    component: Main,
    meta: {
      title: '客户管理',
      icon: 'md-contacts'
    },
    children: [
      {
        path: '/customer/customer-list',
        name: 'CustomerList',
        meta: {
          title: '客户列表',
          // icon: 'md-contacts',
          privilege: [
            { title: '查询', name: 'customer-query' },
            { title: '新增', name: 'customer-add' },
            { title: '编辑', name: 'customer-update' },
            { title: '删除', name: 'customer-delete' }
          ]
        },
        component: () => import('@/views/customer/customer/customer-list.vue')
      },
      {
        path: '/customer/customer-tag-list',
        name: 'CustomerTagList',
        meta: {
          title: '客户标签',
          // icon: 'md-contacts',
          privilege: [
            { title: '查询', name: 'customer-tag-query' },
            { title: '新增', name: 'customer-tag-add' },
            { title: '编辑', name: 'customer-tag-update' },
            { title: '删除', name: 'customer-tag-delete' }
          ]
        },
        component: () => import('@/views/customer/customertag/customer-tag-list.vue')
      },
      {
        path: '/customer/customer-catgegory-list',
        name: 'CustomerCategoryList',
        meta: {
          title: '客户类型',
          // icon: 'md-contacts',
          privilege: [
            { title: '查询', name: 'customer-category-query' },
            { title: '新增', name: 'customer-category-add' },
            { title: '编辑', name: 'customer-category-update' },
            { title: '删除', name: 'customer-category-delete' }
          ]
        },
        component: () => import('@/views/customer/customercategory/customer-category-list.vue')
      }
    ]
  }
];
